<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //事件对象兼容
       function eTarget(event){
        var e = event||window.event
        return e
       } 
       //获取样式兼容
       function getStyle(dom,styleName){
        return dom.currentStyle?dom.currentStyle[styleName]:getComputedStyle(dom)[styleName];
       }
       //阻止浏览器默认行为
       function stopWindow(event){
        return event.preventDefault?event.preventDefault():event.returnValue=false;
       }
       //阻止冒泡
       function stopBlublu(event){
        return event.stopPropagation ? event.stopPropagation() : event.cancelBubble=true;
       }
    </script>
</body>
</html>